﻿package com.alstudio.utils.umeng;

import java.util.HashMap;
import java.util.Map;

import android.content.Context;

import com.alstudio.utils.log.ALLog;
import com.umeng.analytics.MobclickAgent;

//一、需要在AndroidManifest.xml文件里添加
//<meta-data android:name="UMENG_APPKEY" android:value="APPKEY" />
//<meta-data android:name="UMENG_CHANNEL" android:value="Channel ID" />

//二、需要每个Activity实现 (这里请不要将全局的application context传入)
//@Override
//public void onResume()
//{
//	super.onResume();
//	MobclickAgent.onResume(this);
//}
//
//@Override
//public void onPause()
//{
//	super.onPause();
//	MobclickAgent.onPause(this);
//}
//确保在所有的activity中都调用 MobclickAgent.onResume() 和MobclickAgent.onPause()方法，
//这两个调用将不会阻塞应用程序的主线程，也不会影响应用程序的性能。
//注意如果您的Activity之间有继承或者控制关系请不要同时在父和子Activity中重复
//添加onPause和onResume方法，否则会造成重复统计

//三、数据发送策略
//在程序的入口Activity的OnCreate()方法中调用MobclickAgent.updateOnlineConfig(this);

public final class UmengUtils {

	private static final String TAG = "UmengUtils";

	public static class Event {
		public static final String VIEW_HOME_PAGE = "VIEW_HOME_PAGE"; // 查看他人主页
		public static final String GO_DATING = "GO_DATING"; // 开始约会吧
		public static final String TO_SEARCH_USER = "TO_SEARCH_USER"; // 找帅哥（美女）
		public static final String ENTER_PERSONAL_CENTER = "ENTER_PERSONAL_CENTER"; // 个人中心
		public static final String ENTER_SETTINGS = "ENTER_SETTINGS"; // 设置
		public static final String ENTER_TOP_RANK = "ENTER_TOP_RANK"; // 排行榜
		public static final String ENTER_MY_DATING = "ENTER_MY_DATING"; // 我的约会
		public static final String ENTER_MY_MSG_BOX = "ENTER_MY_MSG_BOX"; // 信箱
		public static final String ENTER_POINT_MALL = "ENTER_POINT_MALL"; // 积分商城
		public static final String EDIT_MY_ALBUM = "EDIT_MY_ALBUM"; // 编辑我的相册
		public static final String UPLOAD_PHOTO = "UPLOAD_PHOTO"; // 上传头像
		public static final String DELETE_PHOTO = "DELETE_PHOTO"; // 删除照片
		public static final String SET_AVATAR = "SET_AVATAR"; // 设为主头像
		public static final String VIEW_MY_GIFT = "VIEW_MY_GIFT"; // 收到的礼物
		public static final String VIEW_MY_PRAISE = "VIEW_MY_PRAISE"; // 收到的评价
		public static final String ENTER_MY_HOME_PAGE = "ENTER_MY_HOME_PAGE"; // 个人主页
		public static final String EDIT_MY_VCARD = "EDIT_MY_VCARD"; // 编辑个人资料
		public static final String EDIT_NICKNAME = "EDIT_NICKNAME"; // 修改昵称
		public static final String EDIT_SIGNATURE = "EDIT_SIGNATURE"; // 编辑签名
		public static final String EDIT_BIRTHDAY = "EDIT_BIRTHDAY"; // 年龄星座
		public static final String EDIT_PLACE = "EDIT_PLACE"; // 所在地
		public static final String EDIT_JOB = "EDIT_JOB"; // 职业
		public static final String EDIT_HEIGHT = "EDIT_HEIGHT"; // 身高
		public static final String EDIT_WEIGHT = "EDIT_WEIGHT"; // 体重
		public static final String EDIT_MARRIAGE_STATUS = "EDIT_MARRIAGE_STATUS"; // 婚恋状况
		public static final String BEGIN_RECORD_VOICE = "BEGIN_RECORD_VOICE"; // 开始录制语音
		public static final String RATE_VOICE = "RATE_VOICE"; // 评分
		public static final String SAVE_VOICE = "SAVE_VOICE"; // 保存
		public static final String RE_RECORD_VOICE = "RE_RECORD_VOICE"; // 重录
		public static final String DELETE_VOICE = "DELETE_VOICE"; // 删除语音
		public static final String PLAY_VOICE = "PLAY_VOICE"; // 播放我的语音
		public static final String EDIT_PASSWORD = "EDIT_PASSWORD"; // 修改密码
		public static final String ENTER_MY_WALLET = "ENTER_MY_WALLET"; // 我的钱包
		public static final String RECHARGE = "RECHARGE"; // 充值
		public static final String ENTER_GET_FREE_GOLD = "ENTER_GET_FREE_GOLD"; // 进入获取免费金币界面充值
		public static final String GET_FREE_GOLD = "GET_FREE_GOLD"; // 获取免费金币
		public static final String ENTER_MY_BILL = "ENTER_MY_BILL"; // 账单记录
		public static final String CLEAN_MY_BILL = "CLEAN_MY_BILL"; // 清除账单记录
		// public static final String FREE_GOLD_DATE = "FREE_GOLD_DATE"; // 每日一约
		// public static final String FREE_GOLD_VCARD = "FREE_GOLD_VCARD"; //
		// 完善个人资料
		// public static final String FREE_GOLD_FOLLOW = "FREE_GOLD_FOLLOW"; //
		// 关注
		// public static final String FREE_GOLD_SHARE = "FREE_GOLD_SHARE"; // 分享
		public static final String ENTER_PRIVILEGE = "ENTER_PRIVILEGE"; // 超级特权
		public static final String ENTER_VIP_PRIVILEGE = "ENTER_VIP_PRIVILEGE"; // VIP特权
		public static final String BUY_VIP_PRIVILEGE = "BUY_VIP_PRIVILEGE"; // VIP特权套餐
		public static final String ENTER_KICKOUT_PRIVILEGE = "ENTER_KICKOUT_PRIVILEGE"; // 踢人特权
		public static final String BUY_KICKOUT_PRIVILEGE = "BUY_KICKOUT_PRIVILEGE"; // 踢人特权套餐
		public static final String ENTER_ADV_PRIVILEGE = "ENTER_ADV_PRIVILEGE"; // 广告位
		public static final String BUY_ADV_PRIVILEGE = "BUY_ADV_PRIVILEGE"; // 广告位套餐
		public static final String ENTER_SUBSCRIBE_PRIVILEGE = "ENTER_SUBSCRIBE_PRIVILEGE"; // 上线通知
		public static final String BUY_SUBSCRIBE_PRIVILEGE = "BUY_SUBSCRIBE_PRIVILEGE"; // 上线通知套餐
		public static final String ENTER_MY_FAVORITE = "ENTER_MY_FAVORITE"; // 我的收藏
		public static final String VIEW_FAVORITE = "VIEW_FAVORITE"; // 收藏
		public static final String VIEW_FAVORITED = "VIEW_FAVORITED"; // 谁收藏我
		public static final String ENTER_BLACKLIST = "ENTER_BLACKLIST"; // 黑名单
		public static final String ENTER_SYSTEM_SETTINGS = "ENTER_SYSTEM_SETTINGS"; // 系统设置
		public static final String PUSH_MESSAGE = "PUSH_MESSAGE"; // 推送消息
		public static final String SET_SOUND = "SET_SOUND"; // 声音
		public static final String SET_VIBRATE = "SET_VIBRATE"; // 震动
		public static final String SET_SILENT_TIME = "SET_SILENT_TIME"; // 静音时段
		public static final String SET_BG_MUSIC = "SET_BG_MUSIC"; // 背景音乐
		public static final String SET_LOCATION_ENABLED = "SET_LOCATION_ENABLED"; // 位置信息
		public static final String SET_DISTURB = "SET_DISTURB"; // 免打扰
		public static final String EDIT_FEEDBACK = "EDIT_FEEDBACK"; // 意见反馈
		public static final String ENTER_MEACH_SCORE = "ENTER_MEACH_SCORE"; // 给对面评价
		public static final String ENTER_GUIDE = "ENTER_GUIDE"; // 更新介绍
		public static final String ENTER_ABOUT = "ENTER_ABOUT"; // 关于
		public static final String CHECK_UPDATE = "CHECK_UPDATE"; // 检测版本更新
		public static final String VIEW_INSTRUCTION = "VIEW_INSTRUCTION"; // 使用协议
		public static final String VIEW_DATE_RECORD = "VIEW_DATE_RECORD"; // 点击查看某个约会
		public static final String OPEN_PRAISE_PANEL = "OPEN_PRAISE_PANEL"; // 打开评价面板
		public static final String SEND_PRAISE = "SEND_PRAISE"; // 评价送出
		public static final String CLICK_KICKOUT = "CLICK_KICKOUT"; // 踢人
		public static final String SEND_KICKOUT = "SEND_KICKOUT"; // 踢人（确认）
		public static final String CLICK_SESSION_LIST = "CLICK_SESSION_LIST"; // 多任务切换点击
		public static final String VIEW_NEWS_PAPER = "VIEW_NEWS_PAPER"; // 查看报纸
		public static final String END_DATING = "END_DATING"; // 结束当前约会
		public static final String END_ALL_DATING = "END_ALL_DATING"; // 结束所有约会
		public static final String NEW_DATING = "NEW_DATING"; // 新建约会
		public static final String SPEAK = "SPEAK"; // 按住说话
		public static final String OPEN_SMILY_PANEL = "OPEN_SMILY_PANEL"; // 打开表情面板
		public static final String SELECT_SMILY = "SELECT_SMILY"; // 点击表情
		public static final String OPEN_FUNCTION_PANEL = "OPEN_FUNCTION_PANEL"; // 点击+
		public static final String SEND_PCITURE_MSG = "SEND_PCITURE_MSG"; // 发送图片
		public static final String OPEN_GIFT_PANEL = "OPEN_GIFT_PANEL"; // 送礼
		public static final String SEND_GIFT = "SEND_GIFT"; // 送礼确定
		public static final String OPEN_SCENE_PANEL = "OPEN_SCENE_PANEL"; // 换场景
		public static final String SELECT_SCENE = "SELECT_SCENE"; // 选择场景
		public static final String ENTER_COMMON_SENTENCE = "ENTER_COMMON_SENTENCE"; // 常用语
		public static final String ADD_COMMON_SENTENCE = "ADD_COMMON_SENTENCE"; // 添加自定义常用语
		public static final String CLICK_ASSISTANT_BUBBLE = "CLICK_ASSISTANT_BUBBLE"; // 小助手气泡点击
		public static final String VIEW_OFFLINE_MSG = "VIEW_OFFLINE_MSG"; // 点击留言
		public static final String DELETE_OFFLINE_MSG = "DELETE_OFFLINE_MSG"; // 清除留言
		public static final String VIEW_OFFLINE_MSG_DETAIL = "VIEW_OFFLINE_MSG_DETAIL"; // 查看留言详情
		public static final String VIEW_SYSTEM_MSG = "VIEW_SYSTEM_MSG"; // 点击通知
		public static final String DELETE_SYSTEM_MSG = "DELETE_SYSTEM_MSG"; // 清除通知
		public static final String VIEW_SYSTEM_MSG_DETAIL = "VIEW_SYSTEM_MSG_DETAIL"; // 查看通知详情
		public static final String VIEW_EXCHANGE_GIFT = "VIEW_EXCHANGE_GIFT"; // 积分兑换礼物
		public static final String VIEW_POINT_LIST = "VIEW_POINT_LIST"; // 积分清单
		public static final String ADD_FAVORITE = "ADD_FAVORITE"; // 收藏
		public static final String PLAY_USER_VOICE = "PLAY_USER_VOICE"; // 播放语音介绍
		public static final String VIEW_USER_GIFT = "VIEW_USER_GIFT"; // 查看他人收到的礼物
		public static final String VIEW_USER_PRAISE = "VIEW_USER_PRAISE"; // 查看他人收到的评价
		public static final String DATE_USER = "DATE_USER"; // 约她（他）
		public static final String SEND_DATE_INVITATION = "SEND_DATE_INVITATION"; // 约她（他）送出
		public static final String SEND_OFFLINE_MSG = "SEND_OFFLINE_MSG"; // 留言
		public static final String VIEW_USER_ALBUM = "VIEW_USER_ALBUM"; // 查看头像
		public static final String VIEW_USER_VCARD = "VIEW_USER_VCARD"; // 查看详细资料
		public static final String ADD_SUBSCRIBE = "ADD_SUBSCRIBE"; // 订阅
		public static final String REPORT = "REPORT"; // 举报
		public static final String ADD_BLACKLIST = "ADD_BLACKLIST"; // 拉黑
		public static final String SEARCH_USER_GENDER_FILTER = "SEARCH_USER_GENDER_FILTER"; // 筛选性别查看
		public static final String SEARCH_USER = "SEARCH_USER"; // 在线
		public static final String SEARCH_USER_BY_ID = "SEARCH_USER_BY_ID"; // 搜索id或昵称
		public static final String SEARCH_USER_BY_CONDITION = "SEARCH_USER_BY_CONDITION"; // 按条件搜索
		public static final String SEARCH_USER_INTEREST_FILTER = "SEARCH_USER_INTEREST_FILTER"; // 筛选爱好
		public static final String SEARCH_USER_BY_RANDOM = "SEARCH_USER_BY_RANDOM"; // 试试手气
		public static final String SEARCH_USER_BY_RANDOM_CHANGE = "SEARCH_USER_BY_RANDOM_CHANGE"; // 试试手气换一个
		public static final String REGISTER_SUCCESS = "REGISTER_SUCCESS"; // 注册成功
		public static final String CLICK_RECOMMEND_APP = "CLICK_RECOMMEND_APP"; // 推荐下载
		public static final String CLEAN_CACHE = "CLEAN_CACHE"; // 清除缓存点击
		public static final String VIEW_MEACH_HOME_PAGE = "VIEW_MEACH_HOME_PAGE"; // 对面官方博客查看
		public static final String VIEW_MEACH_HELP = "VIEW_MEACH_HELP"; // 用户帮助点击
		public static final String CLICK_SHARE_SOUND = "CLICK_SHARE_SOUND"; // 语音介绍分享
		public static final String CLICK_FIND_PASSWORD = "CLICK_FIND_PASSWORD"; // 忘记密码点击
		public static final String RECHARGE_YEEPAY = "RECHARGE_YEEPAY"; // 易宝充值
		public static final String RECHARGE_ALIPAY = "RECHARGE_ALIPAY"; // 支付宝充值
		public static final String WEIBO_SHARE = "WEIBO_SHARE"; // 分享Meach
		public static final String RECEIVE_GIFT = "RECEIVE_GIFT"; // 收到礼物
		public static final String ENTER_ACTIVITY_PAGE = "ENTER_ACTIVITY_PAGE"; // 进入活动页面
		public static final String VIEW_DATING = "VIEW_DATING"; // 查看我的约会
		public static final String VIEW_HISTORY_DATE = "VIEW_HISTORY_DATE"; // 查看历史约会
		public static final String CLEAN_HISTORY_DATE = "CLEAN_HISTORY_DATE"; // 清除历史约会
		public static final String SYN_DATE = "SYN_DATE"; // 同步历史约会
		public static final String SEARCH_DATE = "SEARCH_DATE"; // 查找历史约会
		public static final String CLICK_MSG_MENU = "CLICK_MSG_MENU"; // 消息菜单操作
		public static final String CLICK_HOME_ARROW = "CLICK_HOME_ARROW"; // 点击主界面的箭头
		public static final String ENTER_THREE_MIN_DATING = "ENTER_THREE_MIN_DATING";// 三分钟约会
		public static final String MY_WALLET = "MY_WALLET"; // 我的金币
		public static final String ENTER_BOUNTY = "ENTER_BOUNTY"; // 赏金任务
		public static final String ENTER_PROPS_MALL = "ENTER_PROPS_MALL"; // 道具商城
		public static final String ENTER_MEACH_EXIT = "ENTER_MEACH_EXIT"; // 退出对面
		public static final String VIEW_FUN_MEACH = "VIEW_FUN_MEACH"; // 玩转对面
		public static final String VIEW_MEMBER_CERTIFICATION = "VIEW_MEMBER_CERTIFICATION"; // 会员认证
		public static final String DELETE_FAVORITE = "DELETE_FAVORITE"; // 删除我的收藏
		public static final String DELETE_FAVORITED = "DELETE_FAVORITED"; // 删除谁收藏了我
		public static final String DELETE_DAT_HISTORY = "DELETE_DAT_HISTORY"; // 删除单挑历史约会记录
		public static final String VIEW_GREET_LIST = "VIEW_MOS_POLATAR"; // 最受欢迎榜
		public static final String VIEW_NEW_PEOPLE_LIST = "VIEW_NEWS_PAPER"; // 新人榜
		public static final String VIEW_GLAMOUR_LIST = "VIEW_GLAMOUR"; // 新人榜
		public static final String VIEW_NABOB_LIST = "VIEW_USER_POSERON"; // 富豪榜
		public static final String VIEW_PROPS_MALL_PAGE = "VIEW_PROPS_MALL_PAGE"; // 道具商城
		public static final String VIEW_MY_PROPS_PAGE = "VIEW_MY_PROPS_PAGE"; // 我的道具
		public static final String VIEW_PROPS_BUY_DETAIL_LIST = "VIEW_PROPS_BUY_DETAIL_LIST"; // 购买明细
		public static final String VIEW_PROPS_BUY_DETAIL_INFO = "VIEW_PROPS_BUY_DETAIL_INFO"; // 道具购买详情
		public static final String VIEW_PLAZA_PAGE = "VIEW_PLAZA_PAGE"; // 显示广场
		public static final String SEARCH_PLAZA_MSG_SELECT = "SEACH_PLAZA_MSG_SELECT"; // 筛选广场信息
		public static final String VIEW_PALAZA_BROCAST_PAGE = "VIEW_PALAZA_BROCAST_PAGE"; // 广场消息编辑页面
		public static final String SEND_PALAZA_BROCAST = "SEND_PALAZA_BROCAST"; // 广场消息发送
		public static final String EXIT_PALAZA_BROCAST_PAGE = "EXIT_PALAZA_BROCAST_PAGE"; // 退出广播
		public static final String CLEAN_PALAZA_BROCAST = "CLEAN_PALAZA_BROCAST"; // 清除广播发送内容
		public static final String ENTER_PALAZA_SMILY = "ENTER_PALAZA_SMILY"; // 广播发送界面显示表情列表
		public static final String ENTER_PALAZA_SELECT = "ENTER_PALAZA_SELECT"; // 显示@的联系人
		public static final String ENTER_PALAZA_FONT_COLOR = "ENTER_PALAZA_FONT_COLOR"; // 显示广播发送界面的字体显示选择列表
		public static final String SELECT_FONT_COLOR = "SELECT_FONT_COLOR"; // 字体颜色选择
		public static final String CACEL_FONT_COLOR = "CACEL_FONT_COLOR"; // 取消彩字
		public static final String SET_PALAZA_MSG_TOP = "SET_PALAZA_MSG_TOP"; // 设置为置顶广播
		public static final String CACEL_PALAZA_MSG_TOP = "CACEL_PALAZA_MSG_TOP"; // 取消置顶广播
		public static final String PALAZA_VIEW_RECHARGE = "PALAZA_VIEW_RECHARGE"; // 广场发送消息余额不足,充值提示.
		public static final String VIEW_ACTIVITYS = "VIEW_ACTIVITYS"; // 活动列表
		public static final String VIEW_MISSTONS = "VIEW_MISSTONS"; // 任务列表
		public static final String ENTER_ACTIVITY = "ENTER_ACTIVITY"; // 点击单个活动
		public static final String ENTER_MISSTON = "ENTER_MISSTON"; // 点击单个任务
		public static final String ENTER_MISSTON_STATE = "ENTER_MISSTON_STATE";// 单个任务状态统计
		public static final String ENTER_ACTIVITY_STATE = "ENTER_ACTIVITY_STATE"; // 单个活动的状态统计
		public static final String VIEW_MEACH_BLOG = "VIEW_MEACH_BLOG"; // 成为推广员

		public static final String ENTER_THROWBALLVIEW = "ENTER_THROWBALLVIEW"; // 抛绣球
		public static final String THROWBALL = "THROWBALL"; // 抛一下
		public static final String ADD_REGARD = "ADD_REGARD"; // 添加心意
		public static final String ADD_COINS = "ADD_COINS"; // 选择添加金币
		public static final String ADD_GIFTS = "ADD_GIFTS"; // 选择添加礼物
		public static final String SAY_SOMETHING = "SAY_SOMETHING"; // 说些什么
		public static final String START_SPEAK = "START_SPEAK"; // 按住说话
		public static final String START_WRITE = "START_WRITE"; // 选择文字
		public static final String CLICK_ADD_TEXT = "CLICK_ADD_TEXT"; // 选择添加文字
		public static final String SELECT_RECVER_NUM = "SELECT_RECVER_NUM"; // 选择人数
		public static final String THROW = "THROW"; // 选择抛出去
		public static final String MYBALL = "MYBALL"; // 我的绣球
		public static final String EDIT_MYBALL = "EDIT_MYBALL"; // 编辑我的绣球
		public static final String RECV_BALL = "RECV_BALL"; // 接绣球
		public static final String THROW_RECVED_BALL = "THROW_RECVED_BALL"; // 抛出去
		public static final String BALL_INFO = "BALL_INFO"; // 抛绣球info
		public static final String ANSWER = "ANSWER"; // 回应

		public static final String TIME_SENDGIFT = "TIME_SENDGIFT"; // 送礼时选择计时送出
		public static final String START_TIME = "START_TIME"; // 点击约会界面的计时图标
		public static final String SELECT_STOP_TIME = "SELECT_STOP_TIME"; // 选择停止
		public static final String SEND_ALL = "SEND_ALL"; // 选择全部送出

		public static final String SQUARE_MAGIC = "SQUARE_MAGIC"; // 点击魔法广播按钮
		public static final String SELECT_MAGIC = "SELECT_MAGIC"; // 发送魔法广播
		public static final String PLAY_MAGIC = "PLAY_MAGIC"; // 播放魔法广播
		public static final String APPRENTICE = "APPRENTICE"; // 选择拜师
		public static final String AT_HIM = "AT_HIM"; // @他/她
		public static final String REPLY_MSG = "REPLY_MSG"; // 选择“回复留言”
		public static final String CLICK_TITLE = "CLICK_TITLE"; // 点击称谓
		public static final String CANCLE_SQUARE_TITLE = "CANCLE_SQUARE_TITLE"; // 选择取消在广场显示称谓
		public static final String CHOOSE_SQUARE_TITLE = "CHOOSE_SQUARE_TITLE"; // 选择在广场展示称谓
		public static final String VIEW_MASTER = "VIEW_MASTER"; // 点击师从
		public static final String MENTORING_SITUATION = "MENTORING_SITUATION"; // 左侧菜单点击师徒情主页
		public static final String SELECT_MASTER = "SELECT_MASTER"; // 点击我的师父
		public static final String SELECT_STUTEND = "SELECT_STUTEND"; // 点击我的徒弟
		public static final String BREAK_MENTORING_RELATIONSHIP = "BREAK_MENTORING_RELATIONSHIP"; // 点击脱离师徒关系
		public static final String APPRENTICESHIP = "APPRENTICESHIP"; // 点击我要出师
		public static final String OUT_THE_DOOR_DIVISION = "OUT_THE_DOOR_DIVISION"; // 点击逐出师门
		public static final String APPROVE_APPRENTICE = "APPROVE_APPRENTICE"; // 点击批准出师
		public static final String APPRENTICE_AGREE = "APPRENTICE_AGREE"; // 拜师请求中选择【同意】
		public static final String APPRENTICE_REFUSE = "APPRENTICE_REFUSE"; // 拜师请求中选择【拒绝】

		// 2013-3-20 2.3.0版本
		public static final String CLICK_MY_MEDALS = "CLICK_MY_MEDALS"; // 查看我的勋章
		public static final String CLICK_CELEBRITY_ICON = "CLICK_CELEBRITY_ICON"; // 点击名人图标
		public static final String CLICK_MY_FOOT_PRINT = "CLICK_MY_FOOT_PRINT"; // 点击我的足迹
		public static final String LEFT_MENU_CLICK_HALL_OF_FAME = "LEFT_MENU_CLICK_HALL_OF_FAME"; // 左边菜单点击名人堂
		public static final String HALL_OF_FAME_CLICK_VIEW_TYPE = "HALL_OF_FAME_CLICK_VIEW_TYPE"; // 名人堂切换显示模式
		public static final String HALL_OF_FAME_VIEW_CELEBRITY = "HALL_OF_FAME_VIEW_CELEBRITY"; // 名人堂切查看某一名人
		public static final String HALL_OF_FAME_CLICK_GRID_QUESTION = "HALL_OF_FAME_CLICK_GRID_QUESTION"; // 问号头像点击次数
		public static final String CLICK_SPEC_MEDAL = "CLICK_SPEC_MEDAL"; // 各勋章查看次数

		public static final String NOTICE_PRESENT_GIFT_IN_RETURN = "NOTICE_PRESENT_GIFT_IN_RETURN"; // 收到礼物回赠
		public static final String NOTICE_CLICK_RECHARGE = "NOTICE_CLICK_RECHARGE"; // 续费
		public static final String NOTICE_CLICK_SEND_BIRTHDAY_GIFT = "NOTICE_CLICK_SEND_BIRTHDAY_GIFT"; // 生日提醒，点击送礼
		public static final String NOTICE_VIEW_PROPS_GIFT = "NOTICE_VIEW_PROPS_GIFT"; // 收到道具礼物后“查看详情”
		public static final String FRIEND_INFO_CLICK_TRY_TO_SUBSCRIBE = "FRIEND_INFO_CLICK_TRY_TO_SUBSCRIBE"; // 出现提示订阅时“试一试”的点击

		// 2013-4-12 3.0.0版本

		// 帮会
		public static final String CLICK_LEFT_MENU_ORGANIZATION = "CLICK_LEFT_MENU_ORGANIZATION"; // 左侧菜单点击帮会
		public static final String RANK_CLICK_ORGANIZATION = "CLICK_LEFT_MENU_ORGANIZATION"; // 排行榜点击查看帮会
		public static final String CREATE_ORGANIZATION_FROM_HOME_PAGE = "CREATE_ORGANIZATION_FROM_HOME_PAGE"; // 创建帮会（帮会首页点击）

		public static final String CREATE_ORGANIZATION_FROM_PLAZA_PAGE = "CREATE_ORGANIZATION_FROM_PLAZA_PAGE"; // 创建帮会（帮会广场点击）
		public static final String UNDERSTAND_ORGANIZATION_FROM_HOME_PAGE = "UNDERSTAND_ORGANIZATION_FROM_HOME_PAGE"; // 了解帮会（帮会首页点击）
		public static final String UNDERSTAND_ORGANIZATION_FROM_PLAZA_PAGE = "UNDERSTAND_ORGANIZATION_FROM_PLAZA_PAGE"; // 了解帮会（帮会广场点击）

		public static final String VIEW_LAST_ORGNIZATION_RESULT = "VIEW_LAST_ORGNIZACTION_RESULT"; // 查看上期赛果
		public static final String CLICK_MODIFY_ORGNIZATION_SIG = "CLICK_MODIFY_ORGNIZATION_SIG"; // 点击修改帮会宣言
		public static final String CLICK_GROUP_TALK_IN_ORGNIZATION = "CLICK_GROUP_TALK_IN_ORGNIZATION"; // 点击帮内群聊

		public static final String CLICK_RIGHT_HIDE_ICON_FROM_ORGNIZATION = "CLICK_RIGHT_HIDE_ICON_FROM_ORGNIZATION"; // 点击右上角隐藏功能
		public static final String CLICK_QUIT_ORGNIZATION = "CLICK_QUIT_ORGNIZATION"; // 点击退出帮会
		public static final String CLICK_MANAGER_ORGNIZATION = "CLICK_MANAGER_ORGNIZATION"; // 点击帮会管理
		public static final String CLICK_CREATE_ORGNIZATION = "CLICK_CREATE_ORGNIZATION"; // 点击新建帮会

		public static final String CLICK_MODIFY_ORGNIZATION_NAME = "CLICK_MODIFY_ORGNIZATION_NAME"; // 点击修改帮会名称
		public static final String CLICK_MANAGER_ORGNIZATION_MEMBER = "CLICK_MANAGER_ORGNIZATION_MEMBER"; // 点击帮会成员管理
		public static final String CLICK_MODIFY_ORGNIZATION_LOGO = "CLICK_MODIFY_ORGNIZATION_LOGO"; // 点击修改帮会logo
		public static final String CLICK_ORGNIZATION_SCOPE = "CLICK_ORGNIZATION_SCOPE"; // 点击帮会规模
		public static final String CLICK_ORGNIZATION_PRIVACY_SETTING = "CLICK_ORGNIZATION_PRIVACY_SETTING"; // 帮会隐私设置
		public static final String CLICK_DISMISS_ORGNIZATION = "CLICK_DISMISS_ORGNIZATION"; // 解散帮会
		public static final String CLICK_APPOINT_VICE_PRESIDENT_FROM_ORGNIZATION = "CLICK_APPOINT_VICE_PRESIDENT_FROM_ORGNIZATION"; // 点击任命副帮主
		public static final String CLICK_KICK_OUT_VICE_PRESIDENT_FROM_ORGNIZATION = "CLICK_KICK_OUT_VICE_PRESIDENT_FROM_ORGNIZATION"; // 点击免除副帮主

		public static final String CLICK_KICK_OUT_ORGNIZATION = "CLICK_KICK_OUT_ORGNIZATION"; // 点击踢出帮会
		public static final String CLICK_REQUEST_TO_JOIN_ORGNIZATION = "CLICK_REQUEST_TO_JOIN_ORGNIZATION"; // 点击申请加入帮会
		public static final String CLICK_PLAZA_ORGNIZATION = "CLICK_PLAZA_ORGNIZATION"; // 点击帮会广场
		public static final String ORGNIZATION_CLICK_PUBLISH = "ORGNIZATION_CLICK_PUBLISH"; // 在帮会广场点击发广播
		public static final String ORGNIZATION_CLICK_COMFIRM_PUBLISH = "ORGNIZATION_CLICK_COMFIRM_PUBLISH"; // 点击确定发布广播
		public static final String ORGNIZATION_CLICK_CANCEL_PUBLISH = "ORGNIZATION_CLICK_CANCEL_PUBLISH"; // 点击取消发布广播
		public static final String ORGNIZATION_CLICK_AT_ICON = "ORGNIZATION_CLICK_AT_ICON"; // 点击@操作
		public static final String ORGNIZATION_CLICK_MAGIC_ICON = "ORGNIZATION_CLICK_MAGIC_ICON"; // 点击魔法
		public static final String ORGNIZATION_CLICK_SUPER_ICON = "ORGNIZATION_CLICK_SUPER_ICON"; // 点击超级

		// 师徒
		public static final String CLICK_MY_MATES = "CLICK_MY_MATES"; // 点击我的同门
		public static final String CLICK_REMOVE_MASTER_AND_APPRENTICE_RELATIONSHIP = "CLICK_REMOVE_MASTER_AND_APPRENTICE_RELATIONSHIP"; // 点击解除师徒关系

		// 女神、大神字体
		public static final String CLICK_DASHEN_FONT = "CLICK_DASHEN_FONT"; // 点击大神字体
		public static final String CLICK_NVSHEN_FONT = "CLICK_NVSHEN_FONT"; // 点击女神字体

		public static final String CLICK_DASHEN_PRICE = "CLICK_DASHEN_PRICE"; // 大神字体价格
		public static final String CLICK_NVSHEN_PRICE = "CLICK_NVSHEN_PRICE"; // 女神字体价格

		// 全球总榜
		public static final String CLICK_GLOBAL_RANK = "CLICK_GLOBAL_RANK"; // 点击全球总榜
		public static final String CLICK_GLOBAL_GLAMOUR_RANK = "CLICK_GLOBAL_GLAMOUR_RANK"; // 点击魅力总榜

		// 广告位
		public static final String CLICK_LEFT_MENU_AD = "CLICK_LEFT_MENU_AD"; // 点击广告位
		public static final String CLOSE_LEFT_MENU_AD = "CLOSE_LEFT_MENU_AD"; // 关闭广告位

		// 2013-5-22 3.1.0版本

		// 帮会
		public static final String CLICK_SIGN_IN = "CLICK_SIGN_IN"; // 签到
		public static final String CLICK_BACKGROUD_ORGNIZATION = "CLICK_BACKGROUD_ORGNIZATION"; // 点击帮会背景图片
		public static final String SELECT_RECOMED_BACKGROUD_PICTURE = "SELECT_RECOMED_BACKGROUD_PICTURE"; // 选择推荐背景图片
		public static final String SELECT_PHOTO_BACKGROUD_PICTURE = "SELECT_PHOTO_BACKGROUD_PICTURE"; // 拍照/照片选择背景图
		public static final String CLICK_GAME_BROADCAST = "CLICK_GAME_BROADCAST"; // 点击游戏广播
		public static final String SELECT_GAME_DICING = "SELECT_GAME_DICING"; // 选择掷骰子
		public static final String SELECT_GAME_FINGERGUESSING = "SELECT_GAME_FINGERGUESSING";// 选择猜拳
		public static final String SELECT_GAME_TRUHT = "SELECT_GAME_TRUHT"; // 选择真心话
		public static final String SELECT_RANDOM_QUESTION = "SELECT_RANDOM_QUESTION"; // 选择随机抽一题
		public static final String CLICK_SEND_TRUHT = "CLICK_SEND_TRUHT"; // 确定发送真心话
		public static final String SELECT_QUICK_ANSWER_QUESTION = "SELECT_QUICK_ANSWER_QUESTION"; // 选择"快去回答"真心话
		public static final String CLICK_COLUMN_ORGNIZATION = "CLICK_COLUMN_ORGNIZATION"; // 点击帮会荣耀一栏

		// 约会
		public static final String CLICK_XIAN_LU = "CLICK_XIAN_LU"; // 点击仙露
		public static final String USE_XIAN_LU = "USE_XIAN_LU"; // 使用仙露
		public static final String CLICK_DEFLORATION = "CLICK_DEFLORATION"; // 摘花
		public static final String CLICK_START_APPOINTMENT = "CLICK_START_APPOINTMENT"; // 开始约会
		public static final String CLICK_MAGIC_EXPRESSION = "CLICK_MAGIC_EXPRESSION"; // 点击"魔法表情"
		public static final String CLCIK_KISS_EXPRESSION = "CLCIK_KISS_EXPRESSION"; // 点击
																					// "吻"
		public static final String USE_KISS_EXPRESSION = "USE_KISS_EXPRESSION"; // 使用
																				// "吻"

		public static final String CLCIK_EMBRACE_EXPRESSION = "CLCIK_EMBRACE_EXPRESSION"; // 点击"拥抱"
		public static final String USE_EMBRACE_EXPRESSION = "USE_EMBRACE_EXPRESSION"; // 使用"拥抱"
		public static final String CLICK_BOMB_PROPS = "CLICK_BOMB_PROPS"; // 点击"炸弹"
		public static final String USE_BOMB_PROPS = "USE_BOMB_PROPS"; // 使用"炸弹"
		public static final String CLICK_GO_HOTEL = "CLICK_GO_HOTEL"; // 点击"上酒店"
		public static final String USE_GO_HOTEL = "USE_GO_HOTEL"; // 使用"上酒店"
		public static final String CLICK_PORNOGRAPHIC_EXPLOSION = "CLICK_PORNOGRAPHIC_EXPLOSION"; // 点击
																									// "爆艳照"
		public static final String USE_PORNOGRAPHIC_EXPLOSION = "USE_PORNOGRAPHIC_EXPLOSION"; // 使用
																								// "爆艳照"
		public static final String CLICK_ANTI_WOFL_DEVICE = "CLICK_ANTI_WOFL_DEVICE"; // 点击
																						// "防狼器"
		public static final String USE_ANTI_WOFL_DEVICE = "USE_ANTI_WOFL_DEVICE"; // 点击
																					// "防狼器"
		public static final String CLICK_MAGIC_EXPRESSION_COUNT = "CLICK_MAGIC_EXPRESSION_COUNT"; // 点击魔法表情气泡（重放）的次数（所有魔法表情统一计数）
		public static final String CLICK_APPOINTMENT_PROPS = "CLICK_APPOINTMENT_PROPS"; // 点击"约会道具"
		public static final String USE_GAME_FINGERGUESSING = "USE_GAME_FINGERGUESSING"; // 使用猜拳
		public static final String USE_GAME_DICING = "USE_GAME_DICING"; // 使用掷骰子
		public static final String CLICK_CHANGE_WHEN_START_APPOINTMENT = "CLICK_CHANGE_WHEN_START_APPOINTMENT"; // 开始约会后点击"换一个"
		public static final String CLICK_TARGET_IMAGE_WHEN_START_APPOINTMENT = "CLICK_TARGET_IMAGE_WHEN_START_APPOINTMENT"; // 开始约会界面点击约会对象的图像
		public static final String CLICK_TARGET_VOICE_WHEN_START_APPOINTMENT = "CLICK_TARGET_VOICE_WHEN_START_APPOINTMENT"; // 开始约会界面点击约会对象的语音介绍
		public static final String CLICK_WISH_YOU_WHEN_START_APPOINTMENT = "CLICK_WISH_YOU_WHEN_START_APPOINTMENT";// 开始约会界面点击
																													// "就要你"
		public static final String PERFECT_INFOMATION_CANCLE_COUNT = "PERFECT_INFOMATION_CANCLE_COUNT"; // 首次使用“快速约会”时，提示完善资料的提示框，“取消”的点击次数
		public static final String PERFECT_INFOMATION_SURE_COUNT = "PERFECT_INFOMATION_SURE_COUNT"; // 首次使用“快速约会”时，提示完善资料的提示框，“确定”的点击次数
		public static final String APPOINTMENT_DATA_VIEW_OPEN_COUNT = "APPOINTMENT_DATA_VIEW_OPEN_COUNT"; // "我的约会资料"
																											// 界面打开次数

		// V认证
		public static final String CLICK_AUTH_VIEW_OPEN_COUNT = "AUTH_VIEW_OPEN_COUNT";// v认证界面打开次数
		public static final String CLICK_AUTH_VIEW_CAMERA_COUNT = "AUTH_VIEW_CAMERA_CLICK_COUNT";// v认证界面，"拍照"
																									// 的点击次数
		public static final String CLICK_AUTH_VIEW_COMPARISON_COUNT = "AUTH_VIEW_CLICK_COMPARISON_COUNT"; // v
																											// 认证界面，"选择比对照"
																											// 的点击次数
		public static final String CLICK_AUTH_VIEW_SUBMIT_COUNT = "CLICK_AUTH_VIEW_SUBMIT_COUNT"; // v认证提交按钮的点击次数
		public static final String CLICK_ORGNIZATION_BACKGROUD_RAPLACE_COUNT = "CLICK_ORGNIZATION_BACKGROUD_RAPLACE_COUNT"; // 帮会背景替换界面打开次数

		// 抛绣球
		public static final String CLICK_HOT_LIST_BALL = "CLICK_HOT_LIST_BALL"; // 点击绣球热榜
		public static final String CLICK_DYNAMIC_BALL_NAME = "CLICK_DYNAMIC_BALL_NAME"; // 点击绣球动态中的用户名

		// 高级搜索
		public static final String CLICK_ADV_SEARCH = "CLICK_ADV_SEARCH"; // 点击高级搜索
		public static final String SELECT_GENDER = "SELECT_GENDER";// 选择性别
		public static final String SELECT_AGE = "SELECT_AGE"; // 选择年龄
		public static final String SELECT_DISTANCE = "SELECT_DISTANCE"; // 选择距离
		public static final String SELECT_AUTH = "SELECT_AUTH"; // 选择认证
		public static final String SELECT_ONLINE = "SELECT_ONLINE"; // 选择在线
		public static final String SELECT_SEARCH = "SELECT_SEARCH"; // 选择搜索

		// 2013-12-09游戏中心
		public static final String LEFT_MENU_CLICK_MY_GAME_CENTER = "Event.LEFT_MENU_CLICK_MY_GAME_CENTER"; // 游戏中心

	}

	public static class ArgName {
		public static final String FROM = "界面"; // 来自哪个界面
		public static final String ACTION = "动作";
		public static final String WAY = "途径";
		public static final String STATUS = "状态";
		public static final String SMILY_ID = "表情ID";
		public static final String PRODUCT_ID = "产品ID";
		public static final String GOLD = "金币数量";
		public static final String TYPE = "类别";
		public static final String WEIBO_TYPE = "类别";
		public static final String SEARCH_TYPE = "类别";
		public static final String IMAGE_FROM = "类别";
		public static final String GENDER = "性别";
		public static final String SEARCH_CONDITION = "条件";
		public static final String IS_DATING = "正在约会";
		public static final String DELETE_ACTION = "动作";
		public static final String GIFT_ID = "礼物ID";
		public static final String PRAISE_ID = "评价ID";
		public static final String IS_FREE = "是否免费";
		public static final String IS_ANNOUNCE = "是否全站通告";
		public static final String SCENE_ID = "场景ID";
		public static final String SCENE_NAME = "场景名称";
		public static final String SCENE_BG_ID = "场景背景ID";
		public static final String IS_APPEND_DATA = "是否附加数据";
		public static final String RECHARGE_CARD = "充值卡类型";
		public static final String FEE = "金额";
		public static final String IS_FOLLOW = "是否关注";
		public static final String PROPS_PROP = "道具prop";
		public static final String PROPS_NAME = "道具名称";
		public static final String PROPS_TYPE = "道具类别";
		public static final String MSG_TYPE = "消息类别";
		public static final String COLOR_TYPE = "颜色类别";
		public static final String NAME = "名称";
		public static final String ID = "ID";
		// 2013-3-20 勋章
		public static final String MEDALS = "勋章";

		// 2013-4-12 字体价格
		public static final String FONTS = "字体";

	}

	public static class ViewName {
		public static final String SYSTEM_SETTING = "系统设置界面"; // 来自哪个界面
		public static final String CHAT_MAIN = "聊天界面";
		public static final String SEARCH_USER = "找人界面";
		public static final String SEARCH_USER_ADV = "找人界面(广告位)";
		public static final String SEARCH_USER_ONLINE = "找人界面(在线)";
		public static final String SEARCH_USER_NEARBY = "找人界面(附近)";
		public static final String PRIVILEGE = "超级特权界面";
		public static final String MY_DATING = "我的约会界面";
		public static final String OFFLINE_MSG = "留言界面";
		public static final String SYSTEM_MSG = "通知界面";
		public static final String MY_HOME_PAGE = "我的主页界面";
		public static final String MY_HOME_PAGE_MENU = "我的主页菜单";
		public static final String MY_VCARD = "我的资料界面";
		public static final String USER_HOME_PAGE = "他人主页界面";
		public static final String MY_ALBUM = "我的相册界面";
		public static final String MY_AVATER = "我的头像界面";
		public static final String SEARCH_USER_BY_ID = "按ID/昵称找人界面";
		public static final String SEARCH_USER_RESULT = "找人结果界面";
		public static final String CHAT_RECORD = "聊天记录界面";
		public static final String MY_FAVORITE = "我的收藏界面";
		public static final String MY_FAVORITED = "谁收藏我界面";
		public static final String SEND_DATING_INVITE = "发起约会邀请界面";
		public static final String RECEIVE_DATING_INVITE = "收到约会邀请界面";
		public static final String SYSTEM_RECOMMEND_USER = "系统推荐用户界面";
		public static final String SEARCH_USER_RANDOM = "试试手气界面";
		public static final String RECOMMEND_SUBCRIBE = "推荐订阅界面";
		public static final String SUBCRIBE_PRIVILEGE = "上线通知界面";
		public static final String BLACKLIST = "黑名单界面";
		public static final String PROPSMALL = "道具商城";
	}

	public static class RegisterWayValue {
		public static final String MEACH = "MEACH";
		public static final String FACEBOOK = "FACEBOOK";
		public static final String TWITTER = "TWITTER";
		public static final String SINA = "SINA";
		public static final String QQ = "QQ";
	}

	public static class TypeValue {
		public static final String LEFT = "左";
		public static final String RIGHT = "右";
	}

	public static class ImageFromValue {
		public static final String CAMERA = "拍照";
		public static final String LOCATION_ALBUM = "本地图库";
	}

	public static class ActionValue {
		public static final String EDIT = "编辑";
		public static final String CONFIRM = "确认";
		public static final String COMMIT = "提交";
		public static final String ADD = "添加";
		public static final String REMOVE = "移除";
		public static final String CANCEL = "取消";
		public static final String CLICK = "点击";
		public static final String COMPLETE = "完成";
		public static final String VIEW_POINT = "查看积分";
		public static final String COPY_MSG_TEXT = "复制文本";
		public static final String ADD_TO_COMMON_SENTENCE = "加入常用语";
		public static final String PLAY = "播放";
	}

	public static class BooleanTypeValue {
		public static final String TRUE = "是";
		public static final String FALSE = "否";
	}

	public static class DeleteActionValue {
		public static final String SINGLE = "单条";
		public static final String ALL = "全部";
	}

	public static class SearchTypeValue {
		public static final String ONLINE = "在线";
		public static final String NEARBY = "附近";
		public static final String CUSTOM = "搜索";
	}

	public static class SearchConditionValue {
		public static final String CITY = "同城";
		public static final String JOB = "同行";
		public static final String ZODIAC = "星座";
		public static final String INTEREST = "爱好";
	}

	public static class GenderValue {
		public static final String MALE = "男";
		public static final String FEMALE = "女";
		public static final String ALL = "全部";
	}

	public static class StatusValue {
		public static final String ON = "开";
		public static final String OFF = "关";
	}

	public static class WeiboTypeValue {
		public static final String FACEBOOK = "facebook";
		public static final String TWITTER = "twitter";
		public static final String QZONE = "QQ空间";
		public static final String SINA_WEIBO = "新浪微博";
		public static final String WEIXIN = "微信";
	}

	public static class GetFreeGoldTypeValue {
		public static final String DATE_TODAY = "每日一约奖励";
		public static final String DATING_LOTTERY = "约会礼包抽奖";
		public static final String UPLOAD_PHOTO = "上传个人照片";
		public static final String VOICE_INTRO = "录制语音介绍";
		public static final String FACEBOOK_SHARE = "Facebook分享";
		public static final String TWITTER_SHARE = "Follow Twitter并分享";
		public static final String SINA_SHARE = "关注新浪微博并分享";
		public static final String TENCENT_SHARE = "QQ空间分享";

	}

	public static class PLAZAMsgTypeValue {
		public static final String All_MSG = "全部消息";
		public static final String SYS_MSG = "系统消息";
		public static final String USR_MSG = "用户消息";
		public static final String ME_MSG = "@我的";
	}

	public static class MagicBroadcastTypeValue {
		public static final String MERRY_FESTA = "欢度佳节";
		public static final String HAPPY_BIRTHDAY = "生日快乐";
		public static final String LIKE_YOU = "喜欢你";
		public static final String LOVE_YOU = "我爱你";
		public static final String KICK_YOU = "痛扁一顿";
		public static final String PRICK_YOU = "扎小人";
	}

	public static void markEvent(Context context, String eventId,
			String[] args, String[] values) {

		ALLog.d("Umeng打点 : " + eventId);

		if (args == null && values == null) {
			ALLog.d("null args");
			MobclickAgent.onEvent(context, eventId);
			return;
		}

		if (args == null || values == null || args.length != values.length)
			throw new IllegalArgumentException(
					"args.length must equals with values.length.");

		if (args.length < 1) {
			ALLog.d("empty args");
			MobclickAgent.onEvent(context, eventId);
		} else {
			Map<String, String> purchase = new HashMap<String, String>();
			for (int i = 0; i < args.length; ++i) {
				purchase.put(args[i], values[i]);
				ALLog.d(String.format("======== %s : %s", args[i], values[i]));
			}

			MobclickAgent.onEvent(context, eventId, purchase);
		}
	}

}
